import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np

np.random.seed(666)
x = np.random.randn(1000)
sns.distplot(x)
plt.show()

df = pd.read_csv('tips.csv')
print(df[:5])

# bins 区间个数
# kde 是否显示密度曲线
# vertical 是否竖直方向
sns.distplot(df['total_bill'],
             bins=10,
             kde=False,
             vertical=True,
             color='r',
             )
plt.show()
